﻿<navigation:Page x:Class="Groceries.Views.Stores"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:datagrid="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
           xmlns:riacontrols="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Ria"
           xmlns:ds="clr-namespace:Groceries.Web.Services"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="Stores">
  <Grid x:Name="LayoutRoot">
    <riacontrols:DomainDataSource x:Name="storeData" LoadSize="20" QueryName="GetStores" AutoLoad="True">
      <riacontrols:DomainDataSource.DomainContext>
        <ds:GroceriesDomainContext/>
      </riacontrols:DomainDataSource.DomainContext>

    </riacontrols:DomainDataSource>
    <ScrollViewer BorderThickness="0" VerticalScrollBarVisibility="Auto" Padding="0,12,0,12"
            Margin="-12">
      <StackPanel Margin="0,12,0,12" Orientation="Vertical">
        <TextBlock Text="Stores" Style="{StaticResource HeaderTextStyle}"/>
        <datagrid:DataGrid x:Name="storeGrid" MinHeight="100"
                           ItemsSource="{Binding ElementName=storeData, Path=Data}">

        </datagrid:DataGrid>
      </StackPanel>
    </ScrollViewer>
  </Grid>
</navigation:Page>
